<h1>New patient</h1>

<% form_for(@patient) do |f| %>
  <%= f.error_messages %>
    <p> 
      <label for="user_name">Prénom:</label><br />
      <%= text_field :user, :firstname, :size => 40 %> 
    </p>
	<p> 
      <label for="user_name">Nom:</label><br />
      <%= text_field :user, :lastname, :size => 40 %> 
    </p> 
    <p> 
      <label for="user_password">Mot de passe:</label><br />
      <%= password_field :user, :password, :size => 40 %> 
    </p> 
    <p> 
      <label for="user_password_confirmation">Confirmation:</label><br />
      <%= password_field :user, :password_confirmation, :size => 40 %> 
    </p>
	<p> 
      <label for="user_email">Email:</label><br />
      <%= text_field :user, :email, :size => 40 %> 
    </p>
	<p> 
      <label for="user_adress">Adresse:</label><br />
      <%= text_field :user, :adress, :size => 40 %> 
    </p> 
	<p> 
      <label for="user_cp">Code postal:</label><br />
      <%= text_field :user, :cp, :size => 5 %> 
    </p> 
	<p> 
      <label for="user_city">Ville:</label><br />
      <%= text_field :user, :city, :size => 40 %> 
    </p> 
  <p>
    <label for="patient_weight">Poids (kg):</label><br />
    <%= f.text_field :weight, :size => 40 %>
  </p>
  <p>
    <label for="patient_height">Taille (cm):</label><br />
    <%= f.text_field :height, :size => 40 %>
  </p>
  <p>
    <label for="patient_allergies">Antécédents notables:</label><br />
    <%= f.text_area :allergies, :size => 255 %>
  </p>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', patients_path %>